<template>
	<view class="serverBox">
		<view class="serverTop">
			<view class="serverTopTitle">大型挖掘机维修</view>
			<view class="price">价格：2222.00元</view>
		</view>

		<view class="serverMiddle">
			<view class="serverMiddleTitle">标准收费</view>
			<uni-collapse  :accordion="true">
				<uni-collapse-item title="预防维修">
					<view class="content" v-for="(item,index) in 7">
						<view class="title">服务名称{{index + 1}}</view>
						<view class="price">200.00元</view>
					</view>
				</uni-collapse-item>
				<uni-collapse-item title="机械维修">
					<view class="content" v-for="(item,index) in 2">
						<view class="title">服务名称{{index + 1}}</view>
						<view class="price">200.00元</view>
					</view>
				</uni-collapse-item>
				<uni-collapse-item title="其他维修">
					<view class="content" v-for="(item,index) in 1">
						<view class="title">服务名称{{index + 1}}</view>
						<view class="price">200.00元</view>
					</view>
				</uni-collapse-item>
			</uni-collapse>
		</view>

		<view class="serverBottom">
			<button  class="mini-btn repair" type="primary" size="mini">立即报修</button>
		</view>
	</view>
</template>

<script>
	export default {
		name: "server",
		data() {
			return {

			}
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title: '大型挖掘机维修'
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page{
		background-color: #f1f1f1;
	}
	.serverBox {
		display: flex;
		flex-direction: column;

		.serverTop {
			margin-top: 40rpx;
			padding: 40rpx;
			width: 100%;
			background-color: #fff;

			.serverTopTitle {
				font-size: 40rpx;
				font-weight: 600;
			}


		}

		.serverMiddle {
			background-color: #fff;
			padding: 40rpx;
			border-radius: 20rpx;
			margin: 60rpx 10rpx 100rpx 10rpx;
			border: 1px solid #bbbbbb;
			display: flex;
			flex-direction: column;
			.serverMiddleTitle{
				font-weight: 600;
			}
			
			.content {
				width: 600rpx;
				padding: 30rpx;
				font-size: 28rpx;
				line-height: 40rpx;
				background-color: #f9f9f9;
				color: #666;
				display: flex;
				justify-content: space-between;
			}
		}
		
		.serverBottom{
			z-index: 999;
			position: fixed;
			background-color: #fff;
			width: 100vw;
			height: 80rpx;
			bottom: 0;
			.repair{
				left: 75%;
				top: 10rpx;
			}
		}
	}
</style>
